package org.budo.support.spring.datasource;

import java.util.HashMap;
import java.util.Map;

import org.springframework.jdbc.datasource.lookup.AbstractRoutingDataSource;

import lombok.Getter;
import lombok.Setter;

/**
 * @author lmw
 */
@Getter
@Setter
public class AbstractBudoRoutingDataSource extends AbstractRoutingDataSource {
    private String defaultDataSource;

    private Map<String, Object> dataSourceMap;

    public AbstractBudoRoutingDataSource() {
        this.setTargetDataSources(new HashMap<Object, Object>());
    }

    @Override
    protected Object determineCurrentLookupKey() {
        throw new RuntimeException();
    }
}